/**
 * Copyright 2008 Adam Ruggles.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package kiff.util.model;

import java.io.Serializable;

/**
 * Default Implementation of a Token.
 * @author Adam
 * @version $Id$
 * 
 * Created on Dec 4, 2008 at 8:21:31 PM 
 */
public class DefaultToken implements Token, Serializable {
	/**
	 * Serial Version UID.
	 */
	private static final long serialVersionUID = 3810541115936387474L;
	/**
	 * The text.
	 */
	private String text;
	/**
	 * The state.
	 */
	private int state;
	/**
	 * The action.
	 */
	private int action;
	/**
	 * {@inheritDoc}
	 * @see kiff.util.model.Token#getState()
	 */
	public int getState() {
		return state;
	}

	/**
	 * {@inheritDoc}
	 * @see kiff.util.model.Token#getText()
	 */
	public String getText() {
		return text;
	}

	/**
	 * {@inheritDoc}
	 * @see kiff.util.model.Token#setState(int)
	 */
	public void setState(final int state) {
		this.state = state;
	}

	/**
	 * {@inheritDoc}
	 * @see kiff.util.model.Token#setText(java.lang.String)
	 */
	public void setText(final String text) {
		this.text = text;
	}

	/**
	 * Returns action.
	 * @return the action.
	 */
	public int getAction() {
		return action;
	}

	/**
	 * Sets action.
	 * @param action the action to set.
	 */
	public void setAction(final int action) {
		this.action = action;
	}

}
